package com.twu.bibilioteca;

/**
 * Created by IntelliJ IDEA.
 * User: dixithk
 * Date: 6/20/14
 * Time: 11:41 AM
 * To change this template use File | Settings | File Templates.
 */
public class LogOut implements MenuOperations {

    UserInterface ui = new UserInterfaceApp();
    Library lib = new Library();
    public LogOut(UserInterface ui, Library lib) {
        this.ui = ui;
        this.lib = lib;
    }

    @Override
    public Result action() {
        PresentUsers.removeUser();
        return new Result("Logged Out SuccessFully ! See you again" , true);
    }

    @Override
    public String getName() {
        return "Log Out";  //To change body of implemented methods use File | Settings | File Templates.
    }
}
